package kr.hkit.androidcomplete02.fileIO;

import kr.hkit.androidcomplete02.R;
import android.app.Activity;
import android.os.Bundle;
import android.preference.PreferenceFragment;

public class EditPrefsActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		getFragmentManager().beginTransaction().
		replace(android.R.id.content, new EditPrefs()).commit();
	}
	
	
	public static class EditPrefs extends PreferenceFragment{
		@Override
		public void onCreate(Bundle savedInstanceState) {
			super.onCreate(savedInstanceState);
			addPreferencesFromResource(R.xml.editprefs);
		}
	}
}
